package ynu.edu.model.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import ynu.edu.common.domain.R;
import ynu.edu.model.domain.GeneratedImage;

import java.util.List;
import java.util.Map;

public interface ImagePredictService extends IService<GeneratedImage> {
    GeneratedImage saveImage(Map<String, Object> params);

    List<GeneratedImage> findRecent(int limit);

    GeneratedImage getUserImage(long userId);

    GeneratedImage uploadAvatar(MultipartFile file);

    GeneratedImage generate(Map<String, Object> params);
}
